const loaderUtils = require('loader-utils');

function replace(content) {
  return content.replace(/(\/\/ *@require) +(('|").+('|")).*/, "require($2);");
}

module.exports = function(source) {
  // console.log('test', loaderUtils.getOptions(this), source);
  const content = replace(source);
  console.log('tset', content);
  return content;
}

// module.exports.raw = true;